<template>
  <div class="userView">
      <div class="header">
      <div class="logo">
        <span class="spanimg" @click="Jump_path"></span>
      </div>
      <div class="text">我的</div>
    </div>
    <div class="userView_top clearfix">
      <div class="top_img">
        <img src="../../public/assets/images-index/yaoqiniang1.png" alt="" />
      </div>
      <div class="top_cont">
        <p>游客{{loginid}}</p>
        <p>正在通往漫画岛的路上...</p>
      </div>
    </div>
    <div class="userView_lists">
      <p><span>56</span>关注</p>
      <p><span>45</span>粉丝</p>
      <p><span>1</span>荣誉</p>
    </div>
    <div class="userView_medal">
      <p>荣誉勋章</p>
      <div class="medal_img">
        <img src="../../public/assets/images-index/xz3.png" alt="" />
        <img src="../../public/assets/images-index/xz1.png" alt="" />
        <img src="../../public/assets/images-index/xz2.png" alt="" />
        <img src="../../public/assets/images-index/xz4.png" alt="" />
        <img src="../../public/assets/images-index/xz5.png" alt="" />
        <img src="../../public/assets/images-index/xz6.png" alt="" />
        <img src="../../public/assets/images-index/xz7.png" alt="" />
      </div>
    </div>
    <div class="userView_function">
            <ul> 
                <li class="clearfix" @click="Jump_book">
                    <img src="../../public/assets/images-index/ml.png" alt="">
                    <p>我的书架</p>
                </li>
               
            </ul>
        </div>
    <div class="btn">
        <div class="btn1" @click="getout">退出登录</div>
    </div>

  </div>
</template>
<script>
export default {
    props:['loginid'],
    data() {
        return {
            
        }
    },
    methods: {
           Jump_path() {
      this.$router.go(-1);
      
    },
    Jump_book(){
            this.$router.push({name:'book'})
        },
    getout(){
        window.localStorage.removeItem('token')
        window.localStorage.removeItem('userId')
        this.$router.push({name:"home"})
    }
    },
}
</script>
<style >
/* 头部 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 53px;
  background-color: #fff;
  padding: 13px 13px 0 13px;
  box-sizing: border-box;
  display: flex;
  border-bottom: 1px solid #b3b3b3;
  z-index: 999;
}
.logo {
  width: 40px;
  height: 26.5px;
  line-height: 26.5px;
}
.spanimg {
  display: inline-block;
  width: 18px;
  height: 30px;
 background: url(../../public/assets/images-index/zjt.png) no-repeat;
  background-size: 70% 70%;
}
.longspan {
  font-size: 18px;
  display: inline-block;
  color: #333;
  margin-left: 12px;
  font-weight: 800;
  position: relative;
  top: -13px;
}
.text {
  line-height: 23px;
  font-weight: bold;
  font-size: 18px;
}
.userView_top {
    margin-top: 53px;
  width: 100%;
  height: 40vw;
  box-sizing: border-box;
  padding: 18px 35px;
  display: flex;
  justify-content: space-around;
  background: url(../../public/assets/images-index/mybj.png) center no-repeat;
  background-size: 100% 100%;
}
.userView_top img {
  width: 66px;
  height: 66px;
  float: left;
}
.clearfix:after {
  content: "";
  display: block;
  clear: both;
}
.top_img {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.5);
}
.top_cont {
  flex: 1;
  margin-left: 10px;
  margin-top: 10px;
  color: white;
  text-align: left;
}
.top_cont p:nth-child(2) {
  font-size: 12px;
  margin-top: 5px;
}
.userView_lists {
  width: 100%;
  display: flex;
  font-size: 14px;
  box-sizing: border-box;
  padding: 13px 0;
  background-color: rgb(255, 255, 255);
  justify-content: space-around;
}
.userView_lists p {
  color: #999999;
}
.userView_lists p:nth-child(2) {
  padding-left: 42px;
  padding-right: 42px;
  border-left: 1px solid rgb(226, 226, 226);
  border-right: 1px solid rgb(226, 226, 226);
}
.userView_lists p:nth-child(1) {
  margin-right: -16px;
  margin-left: 16px;
}
.userView_lists p:nth-child(3) {
  margin-right: 14px;
  margin-left: -14px;
}
.userView_lists span {
  display: block;
  float: left;
  color: #ff4c35;
  padding-top: 0px;
  padding-right: 5px;
}
.userView_medal {
  padding-top: 15px;
  padding-bottom: 15px;
  margin-top: 10px;
  background-color: #fff;
}
.userView_medal p {
  padding-left: 10px;
  text-align: left;
}
.medal_img {
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: space-around;
}
.medal_img img {
  width: 38px;
  height: 32px;
}
.userView_function ul {
  margin-top: 10px;
}
.userView_function ul li {
  height: 45px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  /* background: url(../../public/assets/images/jiantouright.png) no-repeat; */
  background-size: 6px 10px;
  background-position: 97%;
  border-bottom: 1px solid rgb(248, 248, 248);
  background-color: rgb(255, 255, 255);
}
.userView_function ul li:nth-child(1) {
  margin-bottom: 10px;
}
.userView_function img {
  width: 27px;
  height: 27px;
  float: left;
  margin-right: 10px;
}
.userView_function p {
  text-align: left;
}
.btn{
    widows: 100%;
    margin-top: 15px;
}
.btn1{
    width: 100px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 20px;
    background: #ff4c35;
    color: #fff;
    margin: 0 auto;
}

</style>
